# 指定 CMake 最低版本
cmake_minimum_required(VERSION 3.10)

project(TallyBooks)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_INCLUDE_CURRENT_DIR ON)


link_directories(${PROJECT_SOURCE_DIR}/)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

# 添加包含的头文件路径，子目录中不再需要添加
include_directories(global)
# 如果添加 mysql 头文件报错时，增加 MySQL 所在目录
# 安装完 MySQL 后，MySQL 头文件在 /usr/include 目录下
include_directories(/usr/include)

# 包含 chatServer 子目录
add_subdirectory(tallyServer)
add_subdirectory(tallyClient)
